package com.peenongsaban.freelance.action;

import com.opensymphony.xwork2.ActionSupport;
import com.peenongsaban.freelance.model.FreelancePageModel;
import com.peenongsaban.freelance.service.FreelancePageService;

public class FreelancePageAction extends ActionSupport {
	
	private static final long serialVersionUID = 1L;
	
	FreelancePageModel model = new FreelancePageModel();

	public FreelancePageModel getModel() {
		return model;
	}

	public void setModel(FreelancePageModel model) {
		this.model = model;
	}

	public String showFreelancePage(){
		FreelancePageService service = new FreelancePageService();
		this.model.setListFreelanceByAptitudeTopHot(service.getListFreelanceByAptitudeTopHot());
		this.model.setListFreelanceByAptitudeRecommend(service.getListFreelanceByAptitudeRecommend());
		return SUCCESS;
	}
}
